<?php

include "connect.php";
$teacher_id=$_POST['teacher_id'];
$password=$_POST['password'];
$type=$_POST['type'];


$sq=mysql_query("select * From teacher_login where teacher_id='$teacher_id'");
while($row=mysql_fetch_array($sq)) {
$sql=mysql_query("UPDATE teacher_login SET teacher_id='$teacher_id',password='$password',type='$type' where teacher_id='$teacher_id'");


header("location:update teacher login.php");
}
?>